<template>
  <div class="personal-center">
    <ul class="manage-list">
      <li @click="toPage('account_management')">账户管理</li>
      <li @click="toPage('product')">品牌管理</li>
      <li @click="toPage('my_collection')">我的收藏</li>
      <li @click="toPage('message_center')">消息中心</li>
      <li @click="toPage('my_purchase')">我的求购</li>
    </ul>
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'PersonalCenter',
  data () {
    return {

    }
  },
  methods: {
    toPage (url) {
      this.$router.push('/seller/personal_center/' + url)
    }

  },
  mounted () {

  }
}
</script>

<style lang="scss" scoped>
.personal-center {
  min-width: 1200px;
  position: fixed;
  left: 0;
  top: 1.6rem;
  right: 0;
  bottom: 0;
  z-index: 500;
  display: flex;
  background: #f4f4f4;
  .manage-list {
    width: 4rem;
    flex: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    li {
      cursor: pointer;
      font-size: .34rem;
      text-align: center;
      padding: .24rem 0;
      transition: all .3s;
      background: #fefefe;
      &:hover {
        background: #eaeaea;
      }
    }
  }
  &>div {
    flex: 1;
    box-sizing: border-box;
    padding: .32rem;
  }
}
</style>